function AT2_SplitWhisperToStopAutosend()
AT2_StopOnWhisper_String = AT2_UI_StopOnWhisperEditBox
AT2_StopOnWhisper_Table = {} 
AT2_StopOnWhisper_Table ={strsplit("&",AT2_StopOnWhisper_String)} 
end

function AT2_CheckWhisperToStopAutosend(event, message, ...)
if (AT2_Activated and AT2_WhisperControlEnabled) then
AT2_temp_SOW_checkresult = 0
for i=1,#AT2_StopOnWhisper_Table,1 do
	if strfind(message,AT2_StopOnWhisper_Table[i]) then
	AT2_temp_SOW_checkresult = 1
	end
end
	if AT2_temp_SOW_checkresult == 1 then
	return true
	else return false
	end
end
end
   
function AT2_Control_WhisperToStopAutosend(message)
if AT2_CheckWhisperToStopAutosend(message) then
AT2_Deactivate()
end
end

if not(AT2_ModuleList) then
AT2_ModuleList = {}
end
tinsert(AT2_ModuleList,"Patternmatching");